package org.ece3574.WTParty;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashScreenActivity extends Activity {
	//private ImageView welcomeScreen_;

    private final int SPLASH_DISPLAY_LENGHT = 3000;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.splashscreen);
        //welcomeScreen_ = (ImageView) findViewById(R.id.imageView1);

        /* New Handler to start the Menu-Activity 
         * and close this Splash-Screen after some seconds.*/
        new Handler().postDelayed(new Runnable(){
            
            public void run() {
                /* Create an Intent that will start the Menu-Activity. */
               Intent mainIntent = new Intent(SplashScreenActivity.this,tabbedUIActivity.class);
               SplashScreenActivity.this.startActivity(mainIntent);
               SplashScreenActivity.this.finish();
            }
        }, SPLASH_DISPLAY_LENGHT);
    }
}